package com.zoo.diannaopeijian.mapper;

import com.zoo.diannaopeijian.domain.ComponentParameter;
import com.zoo.diannaopeijian.domain.ComponentParameterExample;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.type.JdbcType;

public interface ComponentParameterMapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table component_parameter
     *
     * @mbggenerated
     */
    @SelectProvider(type=ComponentParameterSqlProvider.class, method="countByExample")
    int countByExample(ComponentParameterExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table component_parameter
     *
     * @mbggenerated
     */
    @DeleteProvider(type=ComponentParameterSqlProvider.class, method="deleteByExample")
    int deleteByExample(ComponentParameterExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table component_parameter
     *
     * @mbggenerated
     */
    @Delete({
        "delete from component_parameter",
        "where ComponentParameterId = #{componentparameterid,jdbcType=INTEGER}"
    })
    int deleteByPrimaryKey(Integer componentparameterid);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table component_parameter
     *
     * @mbggenerated
     */
    @Insert({
        "insert into component_parameter (ComponentParameterId, ComponentId, ",
        "ComponentParameterName)",
        "values (#{componentparameterid,jdbcType=INTEGER}, #{componentid,jdbcType=INTEGER}, ",
        "#{componentparametername,jdbcType=VARCHAR})"
    })
    int insert(ComponentParameter record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table component_parameter
     *
     * @mbggenerated
     */
    @InsertProvider(type=ComponentParameterSqlProvider.class, method="insertSelective")
    int insertSelective(ComponentParameter record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table component_parameter
     *
     * @mbggenerated
     */
    @SelectProvider(type=ComponentParameterSqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="ComponentParameterId", property="componentparameterid", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="ComponentId", property="componentid", jdbcType=JdbcType.INTEGER),
        @Result(column="ComponentParameterName", property="componentparametername", jdbcType=JdbcType.VARCHAR)
    })
    List<ComponentParameter> selectByExample(ComponentParameterExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table component_parameter
     *
     * @mbggenerated
     */
    @Select({
        "select",
        "ComponentParameterId, ComponentId, ComponentParameterName",
        "from component_parameter",
        "where ComponentParameterId = #{componentparameterid,jdbcType=INTEGER}"
    })
    @Results({
        @Result(column="ComponentParameterId", property="componentparameterid", jdbcType=JdbcType.INTEGER, id=true),
        @Result(column="ComponentId", property="componentid", jdbcType=JdbcType.INTEGER),
        @Result(column="ComponentParameterName", property="componentparametername", jdbcType=JdbcType.VARCHAR)
    })
    ComponentParameter selectByPrimaryKey(Integer componentparameterid);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table component_parameter
     *
     * @mbggenerated
     */
    @UpdateProvider(type=ComponentParameterSqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") ComponentParameter record, @Param("example") ComponentParameterExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table component_parameter
     *
     * @mbggenerated
     */
    @UpdateProvider(type=ComponentParameterSqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") ComponentParameter record, @Param("example") ComponentParameterExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table component_parameter
     *
     * @mbggenerated
     */
    @UpdateProvider(type=ComponentParameterSqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(ComponentParameter record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table component_parameter
     *
     * @mbggenerated
     */
    @Update({
        "update component_parameter",
        "set ComponentId = #{componentid,jdbcType=INTEGER},",
          "ComponentParameterName = #{componentparametername,jdbcType=VARCHAR}",
        "where ComponentParameterId = #{componentparameterid,jdbcType=INTEGER}"
    })
    int updateByPrimaryKey(ComponentParameter record);
}